<?php

$ipRanges = [
    ["182.128.0.0","182.143.255.255"] ,
    ["171.208.0.0","171.223.255.255"] ,
    ["182.144.0.0","182.151.255.255"] ,
    ["110.184.0.0","110.191.255.255"] ,
    ["218.88.0.0","218.95.255.255"] ,
    ["118.112.0.0","118.119.255.255"] ,
    ["125.64.0.0","125.71.255.255"] ,
    ["171.88.0.0","171.95.255.255"] ,
    ["222.208.0.0","222.215.255.255"] ,
    ["119.4.0.0","119.7.255.255"] ,
    ["118.120.0.0","118.123.255.255"] ,
    ["175.152.0.0","175.155.255.255"] ,
    ["112.192.0.0","112.195.255.255"] ,
    ["101.204.0.0","101.207.255.255"] ,
    ["113.54.0.0","113.55.255.255"] ,
    ["222.196.0.0","222.197.255.255"] ,
    ["180.84.0.0","180.85.255.255"] ,
    ["223.128.0.0","223.129.255.255"] ,
    ["222.18.0.0","222.19.255.255"] ,
    ["121.48.0.0","121.49.255.255"] ,
    ["221.236.0.0","221.237.255.255"] ,
    ["118.124.0.0","118.125.255.255"] ,
    ["211.83.0.0","211.83.255.255"] ,
    ["221.10.0.0","221.10.255.255"] ,
    ["218.194.0.0","218.194.255.255"] ,
    ["120.94.0.0","120.94.255.255"] ,
    ["61.157.0.0","61.157.255.255"] ,
    ["61.188.0.0","61.188.255.255"] ,
    ["124.161.0.0","124.161.255.255"] ,
    ["60.255.0.0","60.255.255.255"] ,
    ["61.139.0.0","61.139.127.255"] ,
    ["202.115.128.0","202.115.255.255"] ,
    ["202.115.64.0","202.115.127.255"] ,
    ["202.115.32.0","202.115.63.255"] ,
    ["202.115.0.0","202.115.31.255"] ,
    ["202.98.128.0","202.98.159.255"] ,
    ["202.98.112.0","202.98.127.255"] ,
    ["202.98.104.0","202.98.111.255"] ,
    ["202.98.96.0","202.98.103.255"] ,
    ["218.104.200.0","218.104.207.255"] ,
    ["103.5.252.0","103.5.255.255"] ,
    ["103.3.108.0","103.3.111.255"] ,
    ["103.22.124.0","103.22.127.255"]
];

$rng = mt_rand(0, count($ipRanges)-1);
$ipArr = $ipRanges[$rng];
$begin = explode(".", $ipArr[0]);
$end = explode(".", $ipArr[1]);
$ip = '';
for ($i = 0; $i < 4; $i++) {
    $ip .= mt_rand($begin[$i], $end[$i]) . ".";
}
$ip = substr($ip, 0, -1);
echo $ip;

// 103.3.108.0 - 103.3.111.255